/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tan_anotadorCriteria extends AbstractORMCriteria {
	public final StringExpression an_id_anotador;
	public final StringExpression an_nombre;
	
	public Tan_anotadorCriteria(Criteria criteria) {
		super(criteria);
		an_id_anotador = new StringExpression("an_id_anotador", this);
		an_nombre = new StringExpression("an_nombre", this);
	}
	
	public Tan_anotadorCriteria(PersistentSession session) {
		this(session.createCriteria(Tan_anotador.class));
	}
	
	public Tan_anotadorCriteria() throws PersistentException {
		this(orm.AnotacionespowaPersistentManager.instance().getSession());
	}
	
	public Tan_anotacionCriteria createTan_anotacionCriteria() {
		return new Tan_anotacionCriteria(createCriteria("ORM_Tan_anotacion"));
	}
	
	public Tan_anotador uniqueTan_anotador() {
		return (Tan_anotador) super.uniqueResult();
	}
	
	public Tan_anotador[] listTan_anotador() {
		java.util.List list = super.list();
		return (Tan_anotador[]) list.toArray(new Tan_anotador[list.size()]);
	}
}

